# Contributor: atka <atka@tuta.io>
# Maintainer: atka <atka@tuta.io>
pkgname=sct
pkgver=2018.12.18
pkgrel=1
pkgdesc="Set color temperature"
url="https://flak.tedunangst.com/post/sct-set-color-temperature"
arch="all"
license="public domain"
makedepends="libx11-dev libxrandr-dev"
source="https://flak.tedunangst.com/files/sct.c"
builddir="$srcdir"
options="!check" # no tests provided

build() {
	cc -std=c99 -O2 -I /usr/X11R6/include -o sct sct.c -L /usr/X11R6/lib -lm -lX11 -lXrandr
}

package() {
	install -D -m 755 "$srcdir"/sct "$pkgdir"/usr/bin/sct
}

sha512sums="9ec311d7e2b9081f667ef61045c8cec802a9d35f22ef76de23e7d0de918bcf6cd774d2d1bf653f541dc5af98f0a4445889cd8564b4b134f0c8aa38a8e37093b5  sct.c"
